package com.ruoyi.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.employee.mapper.HrEmployeeInfoMapper;
import com.ruoyi.employee.domain.HrEmployeeInfo;
import com.ruoyi.employee.service.IHrEmployeeInfoService;

/**
 * 员工信息Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrEmployeeInfoServiceImpl implements IHrEmployeeInfoService 
{
    @Autowired
    private HrEmployeeInfoMapper hrEmployeeInfoMapper;

    /**
     * 查询员工信息
     * 
     * @param id 员工信息主键
     * @return 员工信息
     */
    @Override
    public HrEmployeeInfo selectHrEmployeeInfoById(Long id)
    {
        return hrEmployeeInfoMapper.selectHrEmployeeInfoById(id);
    }

    /**
     * 查询员工信息列表
     * 
     * @param hrEmployeeInfo 员工信息
     * @return 员工信息
     */
    @Override
    public List<HrEmployeeInfo> selectHrEmployeeInfoList(HrEmployeeInfo hrEmployeeInfo)
    {
        return hrEmployeeInfoMapper.selectHrEmployeeInfoList(hrEmployeeInfo);
    }

    /**
     * 新增员工信息
     * 
     * @param hrEmployeeInfo 员工信息
     * @return 结果
     */
    @Override
    public int insertHrEmployeeInfo(HrEmployeeInfo hrEmployeeInfo)
    {
        return hrEmployeeInfoMapper.insertHrEmployeeInfo(hrEmployeeInfo);
    }

    /**
     * 修改员工信息
     * 
     * @param hrEmployeeInfo 员工信息
     * @return 结果
     */
    @Override
    public int updateHrEmployeeInfo(HrEmployeeInfo hrEmployeeInfo)
    {
        return hrEmployeeInfoMapper.updateHrEmployeeInfo(hrEmployeeInfo);
    }

    /**
     * 批量删除员工信息
     * 
     * @param ids 需要删除的员工信息主键
     * @return 结果
     */
    @Override
    public int deleteHrEmployeeInfoByIds(Long[] ids)
    {
        return hrEmployeeInfoMapper.deleteHrEmployeeInfoByIds(ids);
    }

    /**
     * 删除员工信息信息
     * 
     * @param id 员工信息主键
     * @return 结果
     */
    @Override
    public int deleteHrEmployeeInfoById(Long id)
    {
        return hrEmployeeInfoMapper.deleteHrEmployeeInfoById(id);
    }
}
